package com.lzx.adx.report.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.lzs.adx.commmon.service.impl.CrudServiceImpl;
import com.lzx.adx.report.dao.OrderRecodDao;
import com.lzx.adx.report.dto.OrderRecodDTO;
import com.lzx.adx.report.entity.OrderRecodEntity;
import com.lzx.adx.report.service.OrderRecodService;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * 
 *
 * @author wangzhijun 825400558@qq.com
 * @since 1.0.0 2023-11-25
 */
@Service
public class OrderRecodServiceImpl extends CrudServiceImpl<OrderRecodDao, OrderRecodEntity, OrderRecodDTO> implements OrderRecodService {

    @Override
    public QueryWrapper<OrderRecodEntity> getWrapper(Map<String, Object> params){
        String id = (String)params.get("id");

        QueryWrapper<OrderRecodEntity> wrapper = new QueryWrapper<>();
        wrapper.eq(StringUtils.isNotBlank(id), "order_sn", id);

        return wrapper;
    }


}